package com.yunshang.shoppingmall.service.impl;

import com.yunshang.shoppingmall.entity.Area;
import com.yunshang.shoppingmall.mapper.AreaMapper;
import com.yunshang.shoppingmall.service.AreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("AreaService")
public class AreaServiceImpl implements AreaService{
    @Autowired
    AreaMapper areaMapper;
    @Override
    public int deleteByPrimaryKey(Long id) {
        return 0;
    }

    @Override
    public int insert(Area record) {
        return 0;
    }

    @Override
    public int insertSelective(Area record) {
        return 0;
    }

    @Override
    public Area selectByPrimaryKey(Long id) {
        return null;
    }

    @Override
    public int updateByPrimaryKeySelective(Area record) {
        return 0;
    }

    @Override
    public int updateByPrimaryKey(Area record) {
        return 0;
    }

    @Override
    public List<Area> selectListAll() {
        return areaMapper.selectListAll();
    }

    @Override
    public List<Area> selectArea(int parentId, int level) {
        return  areaMapper.selectArea(parentId,level);
    }

    @Override
    public List<Area> selectAreaList(int parentId, int level) {
        return areaMapper.selectAreaList(parentId,level);
    }
}
